<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>不如js的大门</title>
<style>
    .a{
        font-size: large;
        color: rgb(38, 0, 255);
        font-weight: bold;
    }
</style>
</head>
<body>
    <p id="demo">此数字等于=</p>  <!--那就意味着我这个p就是单纯的输出数字的应用-->
<script>
document.write("<h1>这是一个标题</h1>");
document.write("<p>这是一个段落。</p>"); 
document.write(Date());
//document.getElementById("demo").innerHTML=123e4;

document.getElementById("demo").innerHTML = 23 * 20;//

</script>
<br>
<button type="button" onclick="alert('您好，其实这是报错页面，请您自动的退出!')">
<div class="a">点击</div></button>
<hr>
<button onclick="myFunction()">time</button>    
<script>                /*这不是相当于去调用函数*/            
    function myFunction()
    {
        document.write(Date());
    }
    a = 5;
    b = 6;
    c = a + b;
    
    console.log(c);
  
</script>
<!-- <script>
    var length;
    length = 6;
    document.getElementById("demo").innerHTML = length;
    </script> --> <!--其实这就是相当于那个c语言的那个设置变量了-->
<hr>

</body>
</html>